home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-02-27 | 1.0 KB | 43 lines | [TEXT/CWIE] |
- /* SK8 © 1997 Apple Computer, Inc.
- This code is protected under the current SK8 License
- See http://sk8.research.apple.com/ for more information
- Apple Research Laboratories
- */
-
- import java.awt.*;
-
- class roundrect extends actor {
- int roundednessVar = 10;
-
- public int roundedness() {
- return roundednessVar;
- }
- public void setroundedness(int r) {
- roundednessVar = r;
- }
-
- //The following code is pending the definition of
- //Region.setRoundRectRegion(), a function to create a rounded
- //rectangular region.
-
- /*
- public Region boundsregion() {
- Region reg = new Region();
- Rectangle myBR = boundsrect(true);
- reg.setRoundRectRegion(myBR.x, myBR.y, myBR.width, myBR.height, roundednessVar);
- return reg;
- }
-
- public Region fillregion() {
- Region reg = new Region();
- Rectangle myBR = boundsrect(true);
- myBR.x += framesizeVar;
- myBR.y += framesizeVar;
- myBR.width -= 2 * framesizeVar;
- myBR.height -= 2 * framesizeVar;
- reg.setRoundRectRegion(myBR.x, myBR.y, myBR.width, myBR.height, roundednessVar);
- return reg;
- }
- */
-
- }